Skip to content

feat(blueprint): add prune command - #47

Merged
dines-rl merged 3 commits into
mainfrom
dines/add-blueprint-prune
Jan 17, 2026
Merged

feat(blueprint): add prune command#47
dines-rl merged 3 commits into
mainfrom
dines/add-blueprint-prune

Conversation

@dines-rl

Copy link
Copy Markdown
Contributor

Added rli devbox prune

  • Pagination support - Fetches all blueprints with the given name across multiple pages
  • Blueprint categorization - Separates successful builds from failed builds
  • Smart sorting - Keeps N most recent successful builds (sorted by create_time_ms)
  • Interactive confirmation - Prompts user before deletion (unless --yes flag is used)
  • Dry-run mode - Preview deletions without making changes
  • Comprehensive error handling - Tracks individual deletion failures
  • Multiple output formats - Supports text, JSON, and YAML output
  • Detailed summary display - Shows what will be kept/deleted with timestamps

Added the command with all specified options:

  • - Required blueprint name parameter
  • --dry-run - Preview mode
  • -y, --yes - Auto-confirm
  • --keep - Number of successful builds to keep (default: 1)
  • -o, --output [format] - Output format (text/json/yaml)

@dines-rl
dines-rl requested a review from alb-rl January 17, 2026 00:47
@dines-rl
dines-rl merged commit 96be7fa into main Jan 17, 2026
14 checks passed
@dines-rl
dines-rl deleted the dines/add-blueprint-prune branch January 17, 2026 00:48
dines-rl pushed a commit that referenced this pull request Jan 17, 2026
🤖 I have created a release *beep* *boop*
---


## [1.2.0](v1.1.0...v1.2.0)
(2026-01-17)


### Features

* **blueprint:** add prune command
([#47](#47))
([96be7fa](96be7fa))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant